Add style flag and implement destructors.