Removed mem bugs.