Helper script for portal