Refactor tune() to pass in an integer-based count