Fixed #1, added accuracy option