Added new constructor of easier instantiation.