Changed stub to contain working functions.