Using Libraries and Functions in Hooks