Need to properly handle WP_Error object here.