Add functions to manipulate focus metadata