Removed setType function