Modified for usage with alertify