It aint pretty but it works