Move all handle_call cases into one function (use "case" to distinguish different message types).