Removed error reporting code to make it presentable.