Final code for entry