Adding mock functionality