Fixed configure(); Added error messages.