Added logwrite command