Added logging script