Worked on various functions.