Add ability to use scripted fields

Pull request for DATAES-50