Removed double instance of the function