Implemented all instructions.