Added missing d
Added error displaying