Reworking

Started reworking the center calculation