Added functionality to recent and modified random functionality