Updated with setInProgress function so GUI elements are disabled when an operation is in progress