Corrected an issue with points being passed as references instead of copies