implemented continuous mode functionality