Corrected the frame limiting logic; added more op codes!