Added user error checking to namespace argument