Added ByName and ByCode plus the code attribute (for the third fucking time)

Signed-off-by: Ruben <rubentin@gmail.com>