Added backend for officer generation with roles