Got apply control code 3 done. Still need to implement the other control codes, and also the reverse control codes methods.