Dynamically sized mask