An overall gain function has been utilized in this algorithm to make the right decision based on various factors, the network characteristics such as usage cost, bandwidth, power consumption and dynamic factors such as Received Signal Strength (RSS), velocity and position of mobile terminal (MT).