Added state reg's for debugging state machine