Temporary fix for a bug that stopped loops from working; memory currently functioning