First commit. Quick and hacky, but it works by and large