Modified functions (loop removed)