Reducers and frames self-register, cleaned up the code a bit.