Implemented custom init method