Added sorted insertion