Function score

Added Function score support