My own version of hide-region