Added logging functions in State