Separate library and constructor.