Added LOG function.