Edited waste function to maybe not break.