Added support for Virtual Fields in API

Not Unit tested