Integrated and fully working to test all modes