Removed duplication of function call