PCA adapted, added histogram of duration