Implements values() functionality