OK, got this shit working I think