Adding running median computation (not actually used yet though)