Bugfixes and delete old files command