Worked on helper functions