Switch task start key creation to the getTask function where it belongs