Added factory to shorten construction.