Add factory methods.