There is a way to do it better, find it here