This was incredibly inefficient :)