Debugging and fixed some things.