Moved repeatng bit into a new func