* Handle modes for different functions