Removed double instance of the same code