Markets end with modest gains; amid consolidation: Markets finished the session on a firm note led by financials after Finance Minister in discussion with the banks laid stress on clearing the stalled infrastructure projects and capital infusion in public sector banks. However, upside gains were capped on profit taking in IT shares and investors remained wary ahead of the release of key macroeconomic data, CPI and IIP. Meanwhile, the worsening of deadlock between Greece and its creditors over reforms after International Monetary Fund IMF quit the talks hurt the sentiments. The Sensex gained 54 points to end at 26,425 and the Nifty climbed 18 points to close at 7,983. The rupee declined for the second straight day and is quoting at 64 against the US dollar tracking weakness in the Indian equities.