Implemented and fixed some stuff.