Made beta_grid work on ryder