My modifications to the code from the GREAT People at Omilex for use on my Arduino