Added support for negative length values