Added the REM-detection algorithm.