Adds tablelist function