Building out helper functions.