Added support for multiple reg IDs on server side.