Starting to setup observer function