Downgraded API into .net framework 4.0