Added special vars, got functions close to working