Added variable log path and related checks