Cleaner way to add dependency