Constructor implemented.