Finetuned kernel example.
Removed unnecessary if tests from tasks.