Rather stable implementation