Added various functions used in the twin stick mod
