Worked on marking function