Revert "Removed release code"

This reverts commit 41a0b12fb92826efb6a83336539b2d12a0c8ec21.