Add ability to specify custom factors number