Started adding several basic functions for handling primitives.