Rat decoders

Fixed the out of place return and added some proper handling.