Cleaned up some functions in the application section