Fixed bug where messages weren't being stored.
Tasks:
	- [X] Number of rule loops.
	- [X] Number of messages.