Based on @wittgen's Rd53b code.
Related to #201 and !795, but some things are easier to do in a FE specific way for now.