Tweaks to petframes and petcontrol