Added module init function