Check this thread too. It will give you basic idea …
There are many threads of this type… you can search