Moved function deserialization to prepare() to fix #230