Optimized code, cleaned it up a bit