Made centering non-hardcoded