Added lua writes and entity refreshing