Issue #24: The order of function definition should be reserved