Possibly the hackiest thing I've ever done