It passes my tests, but does weird things in practice. Not sure what to do.