Add more detailed logging