Fixed movement detection. Added ROI and PCA.