Use template for portal
Log errors to console