Updated device to accept bool values to determine what to clear