Brew time too long?

Hello, hoping someone can help me here. I have a Barista Pro Espresso Machine. My settings are:
Grind Size-4
Coffee Amount- 20 G
Why is it taking almost 40 seconds now to get a double shot? Previously it would take about 28-32 seconds. Not sure what has changed here. Not much froth at thecend either. What settings should I try for a good shot?

Hi - Curious what you don’t like about the 40s shot? If it still tasted good then no need to change?

Are you grinding the same beans and do you know how long it has been since they were roasted?
To shorten the time you could decrease the dose or grind it coarser but by how much it would be hard for say.