Setting up constructors with internal functions.