Added logging to constituent scripts