Change begin/end round functions. Fix minor syntax error.