Move warnings inside check for , use variable for path