Finally got dependency working