Fixed warnings for entry function