Added support of createIfNotExists