Move intitialisation to Task