Optimized Code
Included everything