Cleaning up unused blocks