Complete implementation of dependencies constraints.

Signed-off-by: Jerome Maloberti <jmaloberti@gmail.com>