Stable version refactored and ready.