Edited init configuration function