It pretty simple and crude, but should work