Added moderate and logs function.