Added support for creating leaves