Init and Deinit frok agent functions implemented