Added helper functions to thefront end code parser