Modified for without callback