Added begin function.