Not my finest work, but it works sort of.