Refactor old code to use points instead of x, y, z, color params