Implemented Mode 8 and 9 but not tested