Fixed incorrect function names