Replaced timer routine by ma_prof