Removed redundant call to function