Allow mode to be set on frontend