Resolved #79 and fixed a bug where alert messages wouldn't be displayed if an error occured.