Changed Ruby functions