Adding mode setter/getter