Added my generalFunc api