Removed plotting code.