Couldn't this be achieved using a macro?