Added mapID as a variable.