Some misc int functions