Fixing issues with repeateable tree generation and correct block replace.