Added logging to crud