Added some pool stuff. Not finished