New logging script