Removed other bits including arduino implementation