Added custom Main()