Added functions.lua

Signed-off-by: morbidintel <hanged94@gmail.com>