Add several log statements for debugging