Added type annonations to resolve alll refelction warnings.