Add command fucntioning.