Add checking for pt_shell