Loads functions correctly.