Feel free to use this, just give credit.
Credit to @sonlc and SEGA for original. I changed somethings.