Add getTask method, finish converting other callbacks