Assume the value of refreshonly is always a boolean