Code for captain