I am really sorry about having mis-communicated with you Lateralus, and also very sorry I committed that code from Windows, I just had no way of testing it, I actually made a 1 line mistake I had double where I needed int, I'll try to make these mistakes less often, really sorry about that.