Fixed potential bugs in hydra.exec() by making it less convenient to use.