Removed extraneous function definition