Adding factories definitions.