Configure getHandle for batch tools code