Added mid calculations