Fixed layout and math logic