Remove unused function; use displayError() more.