Finalized task main prototype