And secondly: This function freezes the Arduino. I haven't looked at the function to see why its not working