Basic register working