Rearranged functions for readability purposes.