Added ST Library and many optimizations