This common code is used in the portal and client, I also thought about including it here