Add IsMain Property to Function