Finish/fix BLX.

To be honest, I don't think this is the proper way to do things, but it works so whatever.