Miscellaneous hacks