Remove $smcFunc, lots of dulpicate stuff

Signed-off-by: Suki <suki@missallsunday.com>