First part of devise implemented