Made bootstrap logic easier to read.