Adding free page function