Adding all references, etc