Not following redirects, cleaner code in the bsh assertion. Added logging too