Added support for sharp edges