Improved static factory methods.