Debugged a bit, still not working