Whoops, fixed break instead of return and the math error, and now fully working. :)