Fixing bug passing additional arguments to buildFeature function