EE, it's already been done. here is the link for it.