Added capability to take screenshots on failures