Adapting backend script for new portal names