Added check_shell