Made an init function local instead of bound to self