Federer goes through the pain barrier