Adds support for function score