Cleaned up code and made it faster