Added getMessages and pushMessages