Updated api to use target instead of push