Version 0.9 - works correctly in straightforward situations