Added constructor without insideoutside function.