Fixed alarm & current, created diff function