Added optional parameters to the TV API functions