ssnake started
Some code refractored and optimized.