Combining the bottom sections

Combining the bottom sections into one, code is probably a bit messy
though