Added link to stackoverflow answer with alternatives.