Moved pool.scala into core