Removed duplicate function call