Improving method signature logic