Added filtering to the Instance History API call