Moved code to `sprite`