New functions

Added some functions that are required to get this theme working stand
alone.