Removed strange duplicate function definition