Change runTask method position