Read ports from the .resources instead .data.