Adding API methods