Remove main call from file