Removed Prints from function