Add specs to functions