Remember doing just your duty is not enough. it should be accompanied by a mind with no selfishness. The periphery which restricts karma is clearly defined. Action which is performed according to these rules can be considered as yajna. The rest is wrong action.