Added basic registration functionality