Added non-heap-usage function