Messages: Changing from array to stdclass