Updated greet function