Added support for 'depend' clause

2af30d8f1c833cfb0672be1cfd5b0655ef692637 by Alexey Bataev