Set up down as array
Import changes by Eugene Alekseev and Alexey Mochkin