V0.2

Worked on mate function.