First working version of dependent effects