Remove log function, add function visibility