Added errors and default port