Added debugging output for overflow

Change-Id: Ib6ec14d9d3e2dc5b563917904338e33cd86b4dc7