Remove duplciate GetBits function
Output logging