Migrated repository
Added prototype context functions