Created basic function