Finished Optimizing Code

Pool works now and code is more efficient.