Removed higher order function which is no longer necessary