Bug Prevention and Optimization

Increased size of inner div. Optimized some calculations. Changed option
values.