Handled exceptions and some shit