Cleanup and fixed permissions.