Added alternative method for creating element