Added autoremove old messages, and fixed some things