version 140821B Works perfectly with Erik's corrections