Well this is kinda ugly, but will do for now.