Add log statements for debugging