Move hiding into function.