Allowed the format to be passed via the __construct method.