Added functions for test purposes