Converted deregister to foreach
Revert "Build"

This reverts commit c2839b8f0c1b44616afa110548859fd44faf61a1.
Revert "Build"

This reverts commit c2839b8f0c1b44616afa110548859fd44faf61a1.