Added take prefix & converted some private methods to C functions since they don't really need to be part of UIView