Miscellaneous

Replaced system exception with custom one;