Created function to get address
Adjusted the code for security purpose.