Modified COPs
Add vartbale functions
Add do command function