Regapp integration

Hi, I should've PR'd this a while ago. Minor change that has a big impact.