3 ms·I just signed in to post almost exactly this function!by aaren 13y agoI just signed in to post almost exactly this function!