Added missing close bracket on func