Fixed maintenence thread

Forgot the loop