Removed redundant function definition