Updated bad code