Late night coding at it's finest, let me  forget what basic functions do... woohoo.