Added error for double-defined variable