Adding setMode method to interface.