Removed plugin stuff. Eventually reimplement in branch later.