Adding nice alert function