Ensures correct method calls order