Updating functions to use snake_case to match PHP's idioms