Compiles, but broken funcitonality