Cleaned up formatting and fixed param to decode.