Removing useless prints and correcting attribute in api.