Storing msgs in a list