Added logs for debugging