Load functions in correct order