Added Application argument to getFields method.