Implemented handling of the regionHandshake function.