Updated to beta 2 API.