Code I use...

Will update this soon.