For loop based on message size