Added init() function