Added the SET function

We need a better way of doing this. Will check into it later.