Changed variable names and used sequence unpacking