Change to averaged pga computation for magnitude