State machine implementation of applyRollToFrame is now working