Added new algorithm and new material for frame, code now runs over 9000 times faster