renamed parent -> setParent.
added a block method.