Removed redundent check for prevbatch