Added init function with temporary descriptive error checks